<template>
  <router-view></router-view>
</template>

<script setup lang="ts">
// import SvgIcon from '@/components/SvgIcon/src/SvgIcon.vue'
import router from '@/router'
import { RouteRecordRaw } from 'vue-router'
import { useAuthStore } from '@/store/modules/auth'
import { dynamicRoutes } from '@/router/dynamicRoutes'  //动态路由 前台
// window.addEventListener("beforeunload", function (e) {
     //不是所有浏览器都支持提示信息的修改
    //  console.log('刷新');
     
    //  const authStore = useAuthStore()
    //  dynamicRoutes.name = 'main-dynamic'
    // dynamicRoutes.children = authStore.filterRouter 
    //  router.addRoute(dynamicRoutes as unknown as RouteRecordRaw)
// })
</script>
